﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using Woobao.BO;

namespace Woobao.Servico
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the class name "ParticipanteService" in code, svc and config file together.
    // NOTE: In order to launch WCF Test Client for testing this service, please select ParticipanteService.svc or ParticipanteService.svc.cs at the Solution Explorer and start debugging.
    public class ParticipanteService : IParticipanteService
    {
        BOParticipante business;
        BOParticipante bo
        {
            get
            {
                if (business == null)
                {
                    business = new BOParticipante();
                }
                return business;
            }
        }

        public void EntrarNoCampeonato(VO.VOParticipantes obj)
        {
            bo.EntrarNoCampeonato(obj);
        }

        public List<VO.VOParticipantes> ListarParticipantesDoCampeonato(int Campeonato)
        {
            return bo.ListarParticipantesDoCampeonato(Campeonato);
        }
    }
}
